<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登陆</title>

</head>
<body>
<p style="color: red" th:text="${error}" th:if="${not #strings.isEmpty(error)}"></p>
<form th:action="@{/user/login}" method="post">
    用户名:<input type="text" autocomplete="off" name="username"/><br/>
    密码:<input type="password" autocomplete="off" name="password"/><br/>
    <input type="submit" value="登录"/>
</form>
<a th:href="@{/user/toReg}">注册</a>

</body>
</html>